//
//  CalculatorMaker.m
//  FRP_OC
//
//  Created by DeLong Yang on 2017/8/7.
//  Copyright © 2017年 DeLongYang. All rights reserved.
//

#import "CalculatorMaker.h"

@implementation CalculatorMaker

- (CalculatorMaker *(^)(int ))add
{
    return  ^CalculatorMaker *(int value){
        _result += value;
        return self;
    };
}

- (CalculatorMaker *(^)(int ))sub
{
    return ^CalculatorMaker *(int value){
        _result -= value;
        return self;
    };
}

- (CalculatorMaker *(^)(int ))muilt
{
    return ^CalculatorMaker *(int value){
        _result *= value;
        return self;
    };
}

- (CalculatorMaker *(^)(int ))divide
{
    return ^CalculatorMaker *(int value){
        _result /= value;
        return self;
    };
}


@end
